var id = 1


//Json request for getting account history details.
$AHDiv = $('#AccountHistoryDiv');
$tableFields = '';
$.getJSON(url + '/remote/getAccountHistory/'+id, {}, function(response){
	if(response.success){
		var i = 1;
		for(transaction in response.transactions){
			$tableFields += '<tr><td>'+i+'</td><td>'+transaction.details+'</td><td>'+transaction.withdrawlAmount+'</td><td>'+transaction.depositAmount+'</td><td>'+transaction.balance'</td></tr>';
			i++;
		}
		$AHDiv.append($tableFields);
	}
}